package com.zqh.myfmmall.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zqh.myfmmall.dao.UserAddrDao;
import com.zqh.myfmmall.entity.UserAddr;
import com.zqh.myfmmall.service.UserAddrService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户地址 (UserAddr)表服务实现类
 *
 * @author KONO 曾淇杭哒！
 * @since 2022-01-20 20:53:00
 */
@Service("userAddrService")
public class UserAddrServiceImpl extends ServiceImpl<UserAddrDao, UserAddr> implements UserAddrService {

    @Override
    public List<UserAddr> getByUserId(String userId) {
        List<UserAddr> userAddrs = query().eq("user_id", userId).list();
        return userAddrs;
    }
}

